import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSGuildShopItemHelper } from "./SeqSGuildShopItemHelper";
type int = number;
//class SGuildShopUpdate
    
    export  class SGuildShopUpdate extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildShopUpdate();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeBool(this.reset);
            SeqSGuildShopItemHelper.write(arg1, this.shopItems);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.reset = arg1.readBool();
            this.shopItems = SeqSGuildShopItemHelper.read(arg1);
            return;
        }

        public /* const */_type: int=12044;

        public /* var */reset: Boolean;

        public /* var */shopItems: Array<any>;

        public static /* var */_regist: SGuildShopUpdate;
    }

            SGuildShopUpdate._regist = new SGuildShopUpdate(true);
        